<form ng-submit="login_submit()" name="login_form">
  <div class="form-group">
    <label for="username">UserName</label>
    <input type="tel" class="form-control" id="username" ng-model="user.username" name="username" placeholder="User Name" required ng-pattern="/^(13[0-9]|15[0|1|3|6|7|8|9]|18[0-9])\d{8}$/">
    <p class="text-right text-color-warn" ng-show="login_form.username.$invalid">用户名为手机号</p>
  </div>
  <div class="form-group">
    <label for="password">Password</label>
    <input type="password" class="form-control" id="password" ng-model="user.password" name="password" required placeholder="Password" ng-minlength="6" ng-maxlength="8">
    <p class="text-right text-color-warn" ng-show="login_form.password.$invalid">密码由6-8位数字或字母组成</p>
  </div>
  <button type="submit" class="btn btn-default btn-lg btn-block" ng-disabled="login_form.$invalid">登录</button>
</form>
<br><br>